#  This material contains proprietary software of Entropic Speech, Inc.   
#  Any reproduction, distribution, or publication without the the prior	   
#  written permission of Entropic Speech, Inc. is strictly prohibited.
#  Any public distribution of copies of this work authorized in writing by
#  Entropic Speech, Inc. must bear the notice			
# 								
#      "Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved"
# 				
#
# makefile for fanaspec @(#)makefile	1.2 6/25/87 ESI
 	

CFLAGS = $(PROGCFLAGS)



OBJS = fanaspec.o getarspec.o getfft.o version.o
SRCS = fanaspec.c getarspec.c getfft.c version.c 

fanaspec:	$(OBJS) $(SPSLIB)
	cc $(CFLAGS) $(OBJS) $(SPSLIB) -lm -o fanaspec

fanaspec.o: $(SINC)/esps.h $(SINC)/sd.h

clean:
	rm -f $(FOO_OBJS) fanaspec

lint:	$(FOO_SRCS)
	$(LINT) $(LINTFLAGS)  $(FOO_SRCS) $(LINTLIB) -lm > lint

install: fanaspec
	-mv -f $(BINDIR)/fanaspec $(OLDBIN)/fanaspec
	-chmod $(PROGMOD) $(OLDBIN)/fanaspec
	mv fanaspec $(BINDIR)/fanaspec
	-strip $(BINDIR)/fanaspec
	chmod $(PROGMOD) $(BINDIR)/fanaspec
	-diffmk  $(MANDIR)/man1/fanaspec.1 fanaspec.1 man.diff
	@echo diffmked man in man.diff
	-rm -f $(MANDIR)/man1/fanaspec.1
	cp fanaspec.1 $(MANDIR)/man1/fanaspec.1
	chmod $(MANMOD) $(MANDIR)/man1/fanaspec.1
